package org.fle4y.framework.net.aio;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import java.util.logging.Logger;

import org.fle4y.common.utils.configure.Configure;
import org.fle4y.common.utils.log.LogUtil;

/**
 * author : xiehui<br>
 * company : northking <br>
 * Create at: 2012-6-10<br>
 * @version : 1.0<br>
 * mailto:flexie@foxmail.com<br>
 *  Description : AIO服务器的配置实现
 */
public class AIOConfigure implements Configure{
	private static final Logger log = LogUtil.getLogger(AIOConfigure.class.getName());
	private Properties props = new Properties();
	
	public AIOConfigure(){
	    try {
			props.load(new FileInputStream("conf/NetServerConfig.properties"));
		} catch (IOException e) {
			log.severe("读取AIOServer配置文件出错...");
		}
	}
	public String get(String key) {
		return props.getProperty(key);
	}
	public void set(String key, String value) {
		props.setProperty(key, value);
	}

}
